Wialon Local is a server product, and to use it successfully, you need not only knowledge of Wialon algorithms but also the work of a server administrator. In this article, we’ve compiled the most common issues that Wialon Local server administrators have to address, as well as the instructions for solving them.
All actions described below should be performed by a qualified Linux server specialist. For your convenience, we’ve compiled a list of administering tasks in the user guide.
Administration system errors
When logging in to the administration system, you may encounter various errors. Based on the error code and name, choose one of the following solutions.
The site can't be reached / Unable to connect / Page not found
The site unavailability and the output of errors with such text may be related to the state of nginx.
404 Not Found
If the administration system is unavailable and returns the "404 Not Found" error, it’s most probably that the Wialon Local service was installed incorrectly, and the files needed for the service operation are simply missing.
502 Bad Gateway
The "502 Bad Gateway" error when accessing the administration system may be related to the status of processes connected with Wialon Local operation.
The "502 Bad Gateway" error while executing the report
If you were redirected to a page with a "502 Bad Gateway" error when executing a report in Wialon, or it is observed in the browser console when executing a report, it’s most probably the requested report is trying to download resources to which you have limited access.
Fleetrun/Nimbus authorization issues
If you cannot log in to Fleetrun or Nimbus applications using the password you have for the wialon user, but at the same time you can log in to the monitoring site, you should check whether the application requirements are met.
Increase of the sync cache size
When using the Wialon Local backup module, you may encounter a serious increase in the synchronization cache files with the backup server, which can result in the disk space overflow on the main server. An example of such a file name: /home/wialon/wlocal/storage/md/sync.cache.1983335884. This often occurs due to network problems between the main and backup servers, differences in the speed of data recording to disks, or because the communication channel speed is not enough to transfer the incoming data volume.
Checking the modem connection to Wialon Local
In case of any difficulties with connecting the modem to Wialon Local, you should analyze logs in /home/wialon/wlocal/logs
SMS transmission to be sent via an SMPP gateway or a GSM modem is logged in trace.log of the Wialon service. Communication with the gateway or GSM device, as well as SMS sending, is logged in /home/wialon/wlocal/logs/ with the smpp_device_* / gsm_device_* names.
Transferring Wialon Local to a new server
This can become necessary if there is no backup module at the moment of transition to another physical server. By following the instructions below, you will avoid issues with such a transition.
Corrupted database files
If Wialon cannot start after an emergency stopping or a server crash, referring to corrupted database files, you can see the following entry in the trace.log file:
2021/08/17 12:50:26:649: [INF:FAB26740] storage_service_db::open_databases: opening database environment... 2021/08/17 12:50:26:713: [INF:FAB26740] storage_service_db::open_databases: opening databases... 2021/08/17 12:50:26:714: [INF:FAB26740] storage_messages_env::open_environment: opening database environment (cache: size: 12104 MB, chunks: 1)... 2021/08/17 12:50:28:049: [INF:FAB26740] storage_messages_env::open_environment: recovering environment: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery 2021/08/17 12:50:28:841: [INF:FAB26740] adf_load_plugin('storage_server'). Error loading plugin. Error initializing storage subsystem as server. 2021/08/17 12:50:28:841: [INF:FAB26740] Error: couldn`t load ADF plugin: 'storage_server'.
If the Wialon service continues to work, and the log contains the "Fatal error, run database recovery" entry, you should immediately stop Wialon (the service and the administration system site) and start recovery procedures.
Mail delivery issues
You may face a situation when emails from Wialon do not reach the recipients. Such an issue may occur in some of the services. For example, sending emails works only from the Wialon Local administration system but not from Wialon itself.
There are two mechanisms for sending email notifications in Wialon Local. Knowing their characteristics can help diagnose potential issues.
High RAM usage
When working with Wialon Local, you may notice that the service constantly consumes almost all the amount of RAM available on the server. This practice is quite expected, since the Wialon service caches almost all the available RAM, but actively uses only some of it.
nginx configuration issues
All Wialon Local service websites operate using the nginx web server. Sometimes when updating or reinstalling the nginx web server, websites are no longer available for one reason or another. In such cases, you should return to the initial nginx configuration that was on the server after installation from the official Wialon Local image.
nginx security improvements
Depending on the security and network requirements of the server, additional nginx configuration may be required. Below, you can find the most common examples and recommendations on how to supplement a web server configuration to increase security.